﻿using System;

namespace LoverMeeting.Model.Entity
{
    public class Lover
    {
        public int Id { get; set; }
        public string Nickname { get; set; }
        public Image Avatar { get; set; }
        public DateTime Birthday { get; set; }
        public string Email { get; set; }
        public string Password { get; set; }
        public Gender Gender { get; set; }
        public City City { get; set; }
        public LoverAccount Account { get; set; }
        public LoverConfiguration Configuration { get; set; }

        public bool IsActive()
        {
            return Account.IsActive;
        }

        public bool IsBlockedByAdmin()
        {
            return Account.IsBlockedByAdmin;
        }

        public void GenerateCodeActionvation()
        {
            Account.GenerateCodeActionvation();
        }
    }
}
